import 'package:args/args.dart';
import 'package:args/command_runner.dart';
import 'package:frotools/src/commands/codefix_command.dart';
import 'package:frotools/src/commands/doclever_command.dart';
import 'package:frotools/src/commands/docs_command.dart';

class FrotoolsCommandRunner extends CommandRunner<void> {
  var code = CodeFixCommand();
  var docs = DocsCommand();
  var doclver = DocleverCommand();

  List<String> runnerArgs = [];

  FrotoolsCommandRunner() : super('frotools', '\n用于管理前端的工具\n') {
    addCommand(code);
    addCommand(docs);
    addCommand(doclver);
  }

  @override
  Future<void> runCommand(ArgResults topLevelResults) async {
    return super.runCommand(topLevelResults);
  }
}
